﻿using System.ComponentModel.DataAnnotations;

namespace SmartPlant.Model
{
    /// <summary>
    /// 登录输入参数
    /// </summary>
    public class LoginInfo
    {
        /// <summary>
        /// 动态配置信息
        /// </summary>
        /// <example>admin</example>
        [Required(ErrorMessage = "动态配置信息不能为空")]
        public string dynamicConfigId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        /// <example>admin</example>
        [Required(ErrorMessage = "用户名不能为空")]
        public string user { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        /// <example>e10adc3949ba59abbe56e057f20f883e</example>
        [Required(ErrorMessage = "密码不能为空")]
        public string pwd { get; set; }
    }
}